import request from '@/utils/request'

// 首页数据
export function get_data() {
  return request({
    url: '/index/data',
    method: 'get',
  })
}

//关于我们
export function get_about_us_data() {
  return request({
    url: '/index/about-us-data',
    method: 'get',
  })
}

//联系我们
export function get_call_me_data() {
  return request({
    url: '/index/call-me-data',
    method: 'get',
  })
}

//查询产品类型列表
export function get_productMenu() {
  return request({
    url: '/index/get-productMenu',
    method: 'get'
  })
}
export function get_productInfo(id) {
  return request({
    url: '/index/get-product-info/' + id,
    method: 'get'
  })
}
//查询产品列表
export function get_product_list(query) {
  return request({
    url: '/index/get-product',
    method: 'post',
    data: query,
  })
}

//查询新闻类型列表
export function get_newsMenu(query) {
  return request({
    url: '/index/get-newsMenu',
    method: 'get',
  })
}
export function get_newsInfo(id) {
  return request({
    url: '/index/get-news-info/' + id,
    method: 'get'
  })
}
//查询新闻列表
export function get_news_list(query) {
  return request({
    url: '/index/get-news',
    method: 'post',
    data: query,
  })
}
